using System;
using System.Collections.Generic;
using System.Text;

namespace Deepcode.Flux.Core.Services.FluxClient
{
	/// <summary>
	/// ClientHelper class is a static class that implements methods to obtain references
	/// to client side files within the website. Any code requesting a reference to a
	/// flux_client file should use this helper method to obtain the path information.
	/// </summary>
	public static class ClientHelper
	{
		/// <summary>
		/// Returns the Flux client file from the appropriate version stamped
		/// subdirectory of the root /Flux_client mapping
		/// </summary>
		/// <param name="PathFile"></param>
		/// <returns></returns>
		public static string GetFluxClientFile(string PathFile)
		{
			if( PathFile.StartsWith("/") || PathFile.StartsWith("\\") )
				return String.Format("/flux_client/1.0.0{0}", PathFile);
			else
				return String.Format("/flux_client/1.0.0/{0}", PathFile);
		}
	}
}
